//
//  KSRefundListModel.swift
//  Supermarket
//
//  Created by Black_Crystal on 2017/10/12.
//  Copyright © 2017年 kushao. All rights reserved.
//

import UIKit
import HandyJSON

class KSRefundListModel: KSBaseModel {
    var data: KSRefunListDataModel?
    required init() {}
}

class KSRefunListDataModel: HandyJSON {
    var list: [KSRefunListDataListModel]?
    required init() {}
}

class KSRefunListDataListModel: HandyJSON {
    var order_number: String?                               // 订单号
    var status_name: String?                                // 退款状态名称
    var merchant_name: String?                              // 供应商名称
    var refund_total_num: String?                           // 退款的商品总数量
    var money: Int = 0                                      // 退款金额 单位:分
    var refund_goods: [KSRefunListDataListGoodsModel]?
    required init() {}
}

class KSRefunListDataListGoodsModel: HandyJSON {
    var goods_name: String?                                 // 商品名称
    var goods_image: String = ""                            // 商品图片
    var selling_price: Float = 0                            // 商品单价
    var refund_num: Int = 0                                 // 可退数量
    var refund_chooseNum: Int = 0                           // 用户输入退货数量
    var refund_chooseMoney: Float = 0                       // 用户输入退钱
    var good_sku_relation_id: Int = 0                                   // 对应商品表的主键id
    required init() {}
}
